package cn.harry.modular.sys.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
public class UserInfoResult {

	@Schema(description = "用户名")
	private String name;

	@Schema(description = "用户信息")
	private SysUserInfo userInfo;

	@Schema(description = "权限集")
	private List<String> permissions;

	@Schema(description = "角色集")
	private List<String> roles;

	public UserInfoResult() {

	}

	public UserInfoResult(String username, List<String> roles, List<String> permissions,
			SysUserInfo transform) {
		this.name = username;
		this.roles = roles;
		this.permissions = permissions;
		this.userInfo = transform;
	}

}
